package com.base.cn.platform.os.entity.statistics.users;

import com.base.cn.platform.os.common.mybatis.BaseEntity;
import com.base.cn.platform.os.common.mybatis.SqlExclude;
import lombok.Data;

import java.util.Date;

/**
 * 付费用户数据统计
 *
 * @author s.li
 * @date 2019/05/05
 */
@Data
public class ZStatisticsPayUserCount extends BaseEntity {
    /**统计时间（单位/天）*/
    private Date countTime;
    /**付费总用户量*/
    private Integer payUserNum;
    /**新付费用户量*/
    private Integer newPayUserNum;
    /**老付费用户量*/
    private Integer oldPayUserNum;
    /**总付费金额*/
    private Double payPrice;
    /**新用户付费的总金额*/
    private Double newPayPrice;
    /**老用户付费总金额*/
    private Double oldPayPrice;
    /**总平均付费金额*/
    private Double averagePrice;
    /**新用户付费平均金额*/
    private Double newAveragePrice;
    /**老用户平均金额*/
    private Double oldAveragePrice;
    /**总付费转化率*/
    private Float conversionRate;
    /**新用户付费转化率*/
    private Float newConversionRate;
    /**老用户付费转化率*/
    private Float oldConversionRate;
    /**新用户的占比*/
    @SqlExclude
    private Float newUserShare;
    /**老用户的占比*/
    @SqlExclude
    private Float oldUserShare;

    public Integer getPayUserNum() {
        return payUserNum==null ? 0 : payUserNum;
    }

    public Integer getNewPayUserNum() {
        return newPayUserNum ==null ? 0 : newPayUserNum;
    }

    public Integer getOldPayUserNum() {
        return oldPayUserNum==null? 0 : oldPayUserNum;
    }

    public Double getPayPrice() {
        return payPrice ==null? 0.00d : payPrice;
    }

    public Double getNewPayPrice() {
        return newPayPrice ==null ? 0.00d : newPayPrice;
    }

    public Double getOldPayPrice() {
        return oldPayPrice ==null ? 0.00d : oldPayPrice;
    }

    public Double getAveragePrice() {
        return averagePrice ==null ? 0.00d : averagePrice;
    }

    public Double getNewAveragePrice() {
        return newAveragePrice ==null ? 0.00d : newAveragePrice;
    }

    public Double getOldAveragePrice() {
        return oldAveragePrice ==null ? 0.00d : oldAveragePrice;
    }

    public Float getConversionRate() {
        return conversionRate ==null ? 0.00f : conversionRate;
    }

    public Float getNewConversionRate() {
        return newConversionRate ==null ? 0.00f : newConversionRate;
    }

    public Float getOldConversionRate() {
        return oldConversionRate ==null ? 0.00f : oldConversionRate;
    }

    public Float getNewUserShare() {
        return newUserShare==null? 0.00f : newUserShare;
    }

    public Float getOldUserShare() {
        return oldUserShare ==null? 0.00f : oldUserShare;
    }
}
